package com.love.marriage.eventInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.eventInfo.entity.EventInfo;
import com.love.marriage.eventInfo.vo.EventInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * description:  活动表 mapper
 * author:       alex
 * createDate:   2024-10-15 04:26:31
 * version:      1.0.0
 */
@Mapper
public interface EventInfoMapper extends BaseMapper<EventInfo> {

    Page<EventInfoVo> getPage(Page<EventInfoVo> page,
                              @Param("eventInfoVo") EventInfoVo eventInfoVo,
                              @Param("userId") Long userId);

    EventInfoVo queryEventInfo(@Param("id") Long id);
}
